﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:element name="CubicleScript">
    <xs:complexType>
      <xs:sequence>
        <xs:element minOccurs="0" maxOccurs="1" form="unqualified" name="Dict" type="ArrayOfCubicleScriptItem" />
        <xs:element minOccurs="0" maxOccurs="1" form="unqualified" name="Instructions" type="ArrayOfCubicleScriptInstruction" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:complexType name="ArrayOfCubicleScriptItem">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" form="unqualified" name="Item">
        <xs:complexType>
          <xs:attribute name="key" type="xs:string" />
          <xs:attribute name="value" type="xs:string" />
        </xs:complexType>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="ArrayOfCubicleScriptInstruction">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" form="unqualified" name="Instruction">
        <xs:complexType>
          <xs:sequence>
            <xs:element minOccurs="0" maxOccurs="unbounded" form="unqualified" name="ClassArgs">
              <xs:complexType>
                <xs:attribute name="className" type="xs:string" />
              </xs:complexType>
            </xs:element>
            <xs:element minOccurs="0" maxOccurs="unbounded" form="unqualified" name="MethodArgs">
              <xs:complexType>
                <xs:attribute name="className" type="xs:string" />
              </xs:complexType>
            </xs:element>
            <xs:element minOccurs="0" maxOccurs="unbounded" name="p">
              <xs:complexType>
                <xs:attribute name="c" type="xs:int" use="required" />
                <xs:attribute name="row" type="xs:int" use="required" />
                <xs:attribute name="handle" type="xs:string" />
                <xs:attribute name="key" type="xs:string" />
                <xs:attribute name="value" type="xs:string" />
                <xs:attribute name="type" type="xs:string" />
              </xs:complexType>
            </xs:element>
          </xs:sequence>
          <xs:attribute name="memberName" type="xs:string" />
          <xs:attribute name="name" type="xs:string" />
          <xs:attribute name="handle" type="xs:string" />
        </xs:complexType>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
</xs:schema>